// Decompiled by:       Fernflower v0.6
// Date:                28.11.2010 03:55:55
// Copyright:           2008-2009, Stiver
// Home page:           http://www.reversed-java.com

package I;

import java.io.File;
import java.lang.reflect.Field;
import javax.swing.UIManager;
import sun.misc.Unsafe;

public class I {

   private static Unsafe KKLI = KKLI();


   public static final File I() {
      String var0 = System.getProperty("os.name", "").toLowerCase();
      String var1 = System.getProperty("user.home", ".");
      if(var0.contains("win")) {
         String var2 = System.getenv("APPDATA");
         return var2 != null?new File(var2, ".minecraft"):new File(var1, ".minecraft");
      } else {
         return var0.contains("mac")?new File(var1, "Library/Application Support/minecraft"):new File(var1, ".minecraft/");
      }
   }

   private static Unsafe KKLI() {
      try {
         Field var0 = Unsafe.class.getDeclaredField("theUnsafe");
         var0.setAccessible(true);
         return (Unsafe)var0.get(Unsafe.class);
      } catch (SecurityException var2) {
         throw new RuntimeException(var2);
      } catch (NoSuchFieldException var3) {
         throw new RuntimeException(var3);
      } catch (IllegalArgumentException var4) {
         throw new RuntimeException(var4);
      } catch (IllegalAccessException var5) {
         throw new RuntimeException(var5);
      }
   }

   public static final boolean Z() {
      try {
         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
         return true;
      } catch (Exception var1) {
         System.out.println("Okay, I won\'t have a native L&F.");
         return false;
      }
   }

}
